﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum NPCtype
    {
        task,//任务
        pedlar,//商人
        blacksmith//铁匠
    }
    abstract class NPC
    {
        private string name;//名字
        public NPCtype type;//npc类别
        private int health;//生命值
        private string region;//地方
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        public int Health
        {
            get { return health; }
            set { health = value; }
        }
        public string Region
        {
            get { return region; }
            set { region = value; }
        }
        public abstract void speak();
        public NPC(string name, int health, string region)
        {
            this.name = name;
            this.health = health;
            this.region = region;
        }
    }
}
